package com.slx.maximum_depth_of_N_ary_tree;

import org.junit.Assert;

import java.util.ArrayList;

import static org.junit.Assert.*;

public class SolutionTest {

    @org.junit.Test
    public void maxDepth() {
        Node root = new Node(1);
        root.children = new ArrayList<>();
        root.children.add(new Node(3));
        root.children.add(new Node(2));
        root.children.add(new Node(4));
        root.children.get(0).children = new ArrayList<>();
        root.children.get(0).children.add(new Node(5));
        root.children.get(0).children.add(new Node(6));

        Solution s  =new Solution();

        Assert.assertEquals(3, s.maxDepth(root));
    }
}